package com.qd.common.sys.domain.entity.person;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author sjk
 */
@Getter
@Setter
@EqualsAndHashCode
public class PersonRolesDTO {
    private String personId;
    private List<String> roles;

    public void freeData() {
        this.personId = null;
        if (null != roles) {
            roles.clear();
        }
    }
}
